package classAndStudent;

public class TestClassroom {
    public static void main(String[] args) {
        // 创建学生数组
        Student[] students = {
                new Student("A", 18, "女", new double[]{85, 90, 75, 95, 80, 60}),
                new Student("B", 19, "男", new double[]{90, 80, 85, 75, 95, 70}),
                new Student("C", 17, "男", new double[]{75, 85, 90, 80, 75, 95}),
                new Student("D", 18, "男", new double[]{80, 75, 95, 85, 90, 80}),
                new Student("E", 19, "女  ", new double[]{95, 80, 75, 90, 85, 90})
        };

        // 创建班级对象
        Classroom classroom = new Classroom("Class1", students);

        // 输出每门课的平均成绩
        classroom.printCourseAverages();

        // 输出成绩最好的和最差的学生信息
        classroom.printBestAndWorstStudents();

        // 按总成绩降序排列所有学生
        classroom.sortStudentsByTotalScore();
    }
}
